﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CampaignVerifyList.aspx.cs" Inherits="crm_campaign_CampaignVerifyList" %>

<%@ Register TagPrefix="MembersControl" Namespace="Controls" %>
<%@ Register TagPrefix="PubHead" TagName="header" Src="~/pub/crm/include/header.ascx" %>
<PubHead:header ID="header" runat="server"></PubHead:header>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">

    <title>活动列表</title>
    <script type="text/javascript" src="/pub/crm/js/calendar_en.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:HiddenField ID="pageNum" runat="server" />
        <div align="center">
            <table class="poptab">
                <tr>
                    <td class="title">
                        <div id="title">
                            <strong>活动审核管理</strong></div>
                    </td>
                </tr>
            </table>
        </div>
        <div align="center">
            
            <table wIDth="90%">

	          <tr bgcolor="#EEEEEE">
              <td wIDth="20%" align="left"><div align="left">活动代码：</div></td>
	          <td wIDth="30%" align="left"><div align="left">
	             <asp:TextBox ID="campaign_id" runat="server" />
	            </div></td>
	          <td wIDth="20%" align="left"><div align="left">活动名称：</div></td>
              <td wIDth="30%" align="left">
                   <asp:TextBox ID="campaign_name" runat="server" />        </td>
	          </tr>
	            <tr  >
              <td wIDth="20%" align="left"> <div align="left"></div></td>
	          <td wIDth="30%" align="left">
	    
	            <div align="right"></div></td>
	          <td wIDth="20%" align="left"><div align="left"></div></td>
              <td wIDth="30%" align="left"><div align="right">
                 <asp:Button ID="query" Text=" 查 询 " CssClass ="btn" runat="server" OnClick="query_Click" />
		         
              </div></td>
	          </tr>
              <!--根据需要把下面的先注掉 2012-6-20 李学明-->
                <asp:Panel ID="Panel1" runat="server" Visible="False">
                <tr>
                    <td align="right">
                        开始时间段：从</td>
                    <td align="left">
                        <input name="txtCreateDate_start" type="text" onfocus="this.blur()" onkeydown="tab()"
                            size="11" id="txtCreateDate_start" runat="server" />
                        <img id="calendarImg" alt="选择时间" src="/pub/crm/images/calendar_all.gif" width="25"
                            height="21" style="cursor: hand" onclick="setday(this, document.all.txtCreateDate_start)" />
                        &nbsp; &nbsp;&nbsp; 到 &nbsp; &nbsp;
                        <input name="txtCreateDate_end" type="text" onfocus="this.blur()" onkeydown="tab()"
                            size="11" id="txtCreateDate_end" runat="server" />
                        <img id="Img1" alt="选择时间" src="/pub/crm/images/calendar_all.gif" width="25" height="21"
                            style="cursor: hand" onclick="setday(this, document.all.txtCreateDate_end)" />&nbsp;
                    </td>
                </tr>
                <tr bgcolor="#EEEEEE">
                    <td align="right">
                        结束时间段：从</td>
                    <td align="left">
                        <input name="txtEndDate_start" type="text" onfocus="this.blur()" onkeydown="tab()"
                            size="11" id="txtEndDate_start" runat="server" />
                        <img id="Img2" alt="选择时间" src="/pub/crm/images/calendar_all.gif" width="25" height="21"
                            style="cursor: hand" onclick="setday(this, document.all.txtEndDate_start)" />
                        &nbsp; &nbsp;&nbsp; 到 &nbsp; &nbsp;
                        <input name="txtEndDate_end" type="text" onfocus="this.blur()" onkeydown="tab()"
                            size="11" id="txtEndDate_end" runat="server" />
                        <img id="Img3" alt="选择时间" src="/pub/crm/images/calendar_all.gif" width="25" height="21"
                            style="cursor: hand" onclick="setday(this, document.all.txtEndDate_end)" />&nbsp;
                    </td>
                </tr>
                </asp:Panel>
    
          </table>          
            <asp:GridView ID="campaignList" CssClass="opertab" runat="server" DataKeyNames="CAM_UID"
                AllowPaging="true" PageSize="15" Width="90%" border="0" CellPadding="3" CellSpacing="1"
                AutoGenerateColumns="false" ShowFooter="false" 
                OnPageIndexChanging="PageChanged" 
                onselectedindexchanged="campaignList_SelectedIndexChanged">
                <HeaderStyle CssClass="title" />
                <AlternatingRowStyle CssClass="dg_alternating" />
                <RowStyle CssClass="dg_item" />
                <Columns>
                     <asp:BoundField DataField="CAM_CODE" ControlStyle-Width="10%" ItemStyle-Width="15%"
                        HeaderText="活动代码" HeaderStyle-ForeColor="white" />
                     <asp:BoundField DataField="CAM_NAME" ControlStyle-Width="10%" ItemStyle-Width="20%"
                        HeaderText="活动名称" HeaderStyle-ForeColor="white" />
                   <%-- <asp:BoundField DataField="CAM_BEGINTIME" ControlStyle-Width="10%" ItemStyle-Width="10%"
                        HeaderText="活动开始时间" HeaderStyle-ForeColor="white" />
                    <asp:BoundField DataField="CAM_ENDTIME" ControlStyle-Width="10%" ItemStyle-Width="10%"
                        HeaderText="活动结束时间" HeaderStyle-ForeColor="white" />--%>
                  <%--  <asp:BoundField DataField="CAM_STATE_str" ControlStyle-Width="10%" ItemStyle-Width="10%"
                        HeaderText="活动状态" HeaderStyle-ForeColor="white" />--%>
                          <asp:TemplateField HeaderText="活动状态" HeaderStyle-ForeColor="white" >
                        <ItemTemplate>
                            <%# GetStatus(Eval("Cam_state").ToString())%> 
                        </ItemTemplate>
                        </asp:TemplateField>
                        
                     <asp:BoundField DataField="CAM_SEND_TIME" ControlStyle-Width="10%" ItemStyle-Width="18%"
                        HeaderText="短信发送时间" HeaderStyle-ForeColor="white" />
                         <asp:BoundField DataField="Cam_crtime" ControlStyle-Width="10%" ItemStyle-Width="10%"
                        HeaderText="创建时间" HeaderStyle-ForeColor="white" />
                      <asp:BoundField DataField="cam_show_name" ControlStyle-Width="10%" ItemStyle-Width="10%"
                        HeaderText="创建人" HeaderStyle-ForeColor="white" />
                    <asp:TemplateField>
                        <ItemTemplate>
                            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td align="center">
                                        <%--<a href="CampaignLook.aspx?cam_uid=<%# DataBinder.Eval(Container.DataItem, "CAM_UID") %>&pageNum=<%=pageNum.Value %>" >
                                            <img src="/pub/crm/images/se.gif" alt="查看活动" border="0" /></a>--%>
                                        </td>
                                    <%--<td align="center">
                                        <a href="<%# getOper("Strat",Convert.ToString(DataBinder.Eval(Container.DataItem, "CAM_STATE")),Convert.ToString(DataBinder.Eval(Container.DataItem, "CAM_UID"))) %>"
                                        onclick="<%# getOperJS(Convert.ToString(DataBinder.Eval(Container.DataItem, "CAM_STATE")),"Strat",Convert.ToString(DataBinder.Eval(Container.DataItem, "CAM_UID")))%>">
                                            <img src="/pub/crm/images/open.gif" alt="开始活动" border="0" /></a></td>
                                    <td align="center">
                                        <a href="<%# getOper("End",Convert.ToString(DataBinder.Eval(Container.DataItem, "CAM_STATE")),Convert.ToString(DataBinder.Eval(Container.DataItem, "CAM_UID"))) %>" onclick="<%# getOperJS(Convert.ToString(DataBinder.Eval(Container.DataItem, "CAM_STATE")),"End",Convert.ToString(DataBinder.Eval(Container.DataItem, "CAM_UID")))%>">
                                            <img src="/pub/crm/images/close_eye.gif" alt="结束活动" border="0" /></a></td>--%>
                                    <td align="center">
                                       <asp:ImageButton runat="server" ImageUrl="/pub/crm/images/examine.gif" alt="审批"  OnClick="lbt_modift_Click"  CommandArgument='<%# Eval("CAM_UID") %>' ID="ImageButton1" Text="审核"  Visible='<%# GetOperate(Eval("CAM_STATE").ToString()) %>' style="width:15px;" ToolTip="审核" />
                                       <%-- <a href="<%# getEdit(Convert.ToString(DataBinder.Eval(Container.DataItem, "CAM_STATE")),Convert.ToString(DataBinder.Eval(Container.DataItem, "CAM_UID")))%>" >
                                            <img src="/pub/crm/images/m.gif" alt="编辑活动" border="0" /></a>--%>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                        <HeaderTemplate>
                            <span style="color: #ffffff">操作</span>
                        </HeaderTemplate>
                    </asp:TemplateField>
                </Columns>
                <pagertemplate>
                         <table width="100%">
                          <tr>
                            <td style="text-align:right">
                            共<asp:Label ID="lbrecordcount" runat="server" Text='<%# ((GridView)Container.Parent.Parent).Rows.Count %>' />条记录
                            第<asp:Label id="lblPageIndex" runat="server" text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1  %>' />页
                                共<asp:Label id="lblPageCount" runat="server" text='<%# ((GridView)Container.Parent.Parent).PageCount  %>' />页 
                                <asp:linkbutton id="btnFirst" runat="server" causesvalidation="False" commandargument="First" commandname="Page" text="首页" />
                              <asp:linkbutton id="btnPrev" runat="server" causesvalidation="False" commandargument="Prev" commandname="Page" text="上一页" />
                             <asp:linkbutton id="btnNext" runat="server" causesvalidation="False" commandargument="Next" commandname="Page" text="下一页" />                          
                             <asp:linkbutton id="btnLast" runat="server" causesvalidation="False" commandargument="Last" commandname="Page" text="尾页" />                                            
                             <asp:textbox id="txtNewPageIndex" runat="server" width="20px" text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1  %>' />
                             <asp:linkbutton id="btnGo" runat="server" causesvalidation="False" commandargument="-1" commandname="Page" text="GO" /><!-- here set the CommandArgument of the Go Button to '-1' as the flag -->
                             </td>
                          </tr>
                        </table>
                </pagertemplate>
            </asp:GridView>
        </div>
    </form>
</body>
</html>
